<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: QtSoapMessage Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-types">Protected Types</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="class_qt_soap_message-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QtSoapMessage Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The <a class="el" href="class_qt_soap_message.html" title="The QtSoapMessage class provides easy access to SOAP messages. ">QtSoapMessage</a> class provides easy access to SOAP messages.  
 <a href="class_qt_soap_message.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="qtsoap_8h_source.html">qtsoap.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ad27765646a4612b1f644229e9544b744"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#ad27765646a4612b1f644229e9544b744">FaultCode</a> { <br />
&#160;&#160;<b>VersionMismatch</b>, 
<b>MustUnderstand</b>, 
<b>Client</b>, 
<b>Server</b>, 
<br />
&#160;&#160;<b>Other</b>
<br />
 }</td></tr>
<tr class="separator:ad27765646a4612b1f644229e9544b744"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac3bdd2fcf2cf21e519a0b33862c2cf59"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#ac3bdd2fcf2cf21e519a0b33862c2cf59">QtSoapMessage</a> ()</td></tr>
<tr class="separator:ac3bdd2fcf2cf21e519a0b33862c2cf59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e060067d5ddcef2bf25899f70d1713a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a1e060067d5ddcef2bf25899f70d1713a">QtSoapMessage</a> (const <a class="el" href="class_qt_soap_message.html">QtSoapMessage</a> &amp;copy)</td></tr>
<tr class="separator:a1e060067d5ddcef2bf25899f70d1713a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac71afb2d55c00f27b793e99380cdcc32"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#ac71afb2d55c00f27b793e99380cdcc32">~QtSoapMessage</a> ()</td></tr>
<tr class="separator:ac71afb2d55c00f27b793e99380cdcc32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfd530c3e58c9443ddf74b36c922754c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qt_soap_message.html">QtSoapMessage</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#acfd530c3e58c9443ddf74b36c922754c">operator=</a> (const <a class="el" href="class_qt_soap_message.html">QtSoapMessage</a> &amp;copy)</td></tr>
<tr class="separator:acfd530c3e58c9443ddf74b36c922754c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a535e4eaf3d1c0372ec30e02e790b6b58"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a535e4eaf3d1c0372ec30e02e790b6b58">setContent</a> (const QByteArray &amp;buffer)</td></tr>
<tr class="separator:a535e4eaf3d1c0372ec30e02e790b6b58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e22e5782ee668dbcd3218428ea3a062"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a0e22e5782ee668dbcd3218428ea3a062">setContent</a> (QDomDocument &amp;d)</td></tr>
<tr class="separator:a0e22e5782ee668dbcd3218428ea3a062"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16c43285b934153623d541f061dd1910"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a16c43285b934153623d541f061dd1910">addBodyItem</a> (<a class="el" href="class_qt_soap_type.html">QtSoapType</a> *)</td></tr>
<tr class="separator:a16c43285b934153623d541f061dd1910"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61b9c16754a167088a107eb34473683e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a61b9c16754a167088a107eb34473683e">addHeaderItem</a> (<a class="el" href="class_qt_soap_type.html">QtSoapType</a> *)</td></tr>
<tr class="separator:a61b9c16754a167088a107eb34473683e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83b058700a430911c883a4cda80299c2"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_qt_soap_type.html">QtSoapType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a83b058700a430911c883a4cda80299c2">method</a> () const</td></tr>
<tr class="separator:a83b058700a430911c883a4cda80299c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac223f69e31d5f9ff251a467149c547d5"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_qt_soap_type.html">QtSoapType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#ac223f69e31d5f9ff251a467149c547d5">returnValue</a> () const</td></tr>
<tr class="separator:ac223f69e31d5f9ff251a467149c547d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a792f4e366d4bf4c3ca09ea6f034237b5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a792f4e366d4bf4c3ca09ea6f034237b5">setMethod</a> (const <a class="el" href="class_qt_soap_q_name.html">QtSoapQName</a> &amp;)</td></tr>
<tr class="separator:a792f4e366d4bf4c3ca09ea6f034237b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83fb2dcd2fa4c2bf3ab8e1bb3d76455a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a83fb2dcd2fa4c2bf3ab8e1bb3d76455a">setMethod</a> (const QString &amp;name, const QString &amp;url=QString::null)</td></tr>
<tr class="separator:a83fb2dcd2fa4c2bf3ab8e1bb3d76455a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07c31536525e366258d54c75d955de50"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a07c31536525e366258d54c75d955de50">addMethodArgument</a> (<a class="el" href="class_qt_soap_type.html">QtSoapType</a> *)</td></tr>
<tr class="separator:a07c31536525e366258d54c75d955de50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ad20b534929c505e23902f9534d518f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a9ad20b534929c505e23902f9534d518f">addMethodArgument</a> (const QString &amp;uri, const QString &amp;name, const QString &amp;value)</td></tr>
<tr class="separator:a9ad20b534929c505e23902f9534d518f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a980ff800439c59294e6c2ab7529b109e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a980ff800439c59294e6c2ab7529b109e">addMethodArgument</a> (const QString &amp;uri, const QString &amp;name, bool value, int dummy)</td></tr>
<tr class="separator:a980ff800439c59294e6c2ab7529b109e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a4d57e36365d255ec8d8fdf833c6507"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a7a4d57e36365d255ec8d8fdf833c6507">addMethodArgument</a> (const QString &amp;uri, const QString &amp;name, int value)</td></tr>
<tr class="separator:a7a4d57e36365d255ec8d8fdf833c6507"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7aa7a55d9f593144499f8622e8aa1ce5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a7aa7a55d9f593144499f8622e8aa1ce5">isFault</a> () const</td></tr>
<tr class="separator:a7aa7a55d9f593144499f8622e8aa1ce5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f5bbde1c34bddebd81ba112087c78c3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qt_soap_message.html#ad27765646a4612b1f644229e9544b744">FaultCode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a2f5bbde1c34bddebd81ba112087c78c3">faultCode</a> () const</td></tr>
<tr class="separator:a2f5bbde1c34bddebd81ba112087c78c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11b95f781994094c764e457f800a3a21"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_qt_soap_type.html">QtSoapType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a11b95f781994094c764e457f800a3a21">faultString</a> () const</td></tr>
<tr class="separator:a11b95f781994094c764e457f800a3a21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6263ac6f8823f9e2a00e83ba2bf5c4dd"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_qt_soap_type.html">QtSoapType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a6263ac6f8823f9e2a00e83ba2bf5c4dd">faultDetail</a> () const</td></tr>
<tr class="separator:a6263ac6f8823f9e2a00e83ba2bf5c4dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8fd208d7b0a07f9b79581562da32b01"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#af8fd208d7b0a07f9b79581562da32b01">setFaultCode</a> (<a class="el" href="class_qt_soap_message.html#ad27765646a4612b1f644229e9544b744">FaultCode</a> code)</td></tr>
<tr class="separator:af8fd208d7b0a07f9b79581562da32b01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae671efb37455beb8b5ee1247098622b5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#ae671efb37455beb8b5ee1247098622b5">setFaultString</a> (const QString &amp;fstring)</td></tr>
<tr class="separator:ae671efb37455beb8b5ee1247098622b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0cd7c0da675f83e91dcc5c29faf7382"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#af0cd7c0da675f83e91dcc5c29faf7382">addFaultDetail</a> (<a class="el" href="class_qt_soap_type.html">QtSoapType</a> *detail)</td></tr>
<tr class="separator:af0cd7c0da675f83e91dcc5c29faf7382"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba7b362184f4d75405a237014d46cad6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#aba7b362184f4d75405a237014d46cad6">clear</a> ()</td></tr>
<tr class="separator:aba7b362184f4d75405a237014d46cad6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c9c6997f2ee1b35bf73a7988ef87213"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a5c9c6997f2ee1b35bf73a7988ef87213">toXmlString</a> (int indent=0) const</td></tr>
<tr class="separator:a5c9c6997f2ee1b35bf73a7988ef87213"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ae2c2925bc7843e32d57dce0c318d41"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a3ae2c2925bc7843e32d57dce0c318d41">errorString</a> () const</td></tr>
<tr class="separator:a3ae2c2925bc7843e32d57dce0c318d41"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-types"></a>
Protected Types</h2></td></tr>
<tr class="memitem:a57326237655d076b289452ce9ab3b8de"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a57326237655d076b289452ce9ab3b8de">MessageType</a> { <b>Fault</b>, 
<b>MethodRequest</b>, 
<b>MethodResponse</b>, 
<b>OtherType</b>
 }</td></tr>
<tr class="separator:a57326237655d076b289452ce9ab3b8de"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a2aa1fdeea09e733ac5fe103ece393b8a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a2aa1fdeea09e733ac5fe103ece393b8a">isValidSoapMessage</a> (const QDomDocument &amp;candidate)</td></tr>
<tr class="separator:a2aa1fdeea09e733ac5fe103ece393b8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c5e1cc13af9a4aebfd6d061525a69f5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qt_soap_struct.html">QtSoapStruct</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a8c5e1cc13af9a4aebfd6d061525a69f5">body</a> () const</td></tr>
<tr class="separator:a8c5e1cc13af9a4aebfd6d061525a69f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c1ec40db5502f9f54cadcafd4cdc772"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qt_soap_struct.html">QtSoapStruct</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_soap_message.html#a4c1ec40db5502f9f54cadcafd4cdc772">header</a> () const</td></tr>
<tr class="separator:a4c1ec40db5502f9f54cadcafd4cdc772"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a10d5deccb30e6833870657825442d8"><td class="memItemLeft" align="right" valign="top"><a id="a7a10d5deccb30e6833870657825442d8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> ()</td></tr>
<tr class="separator:a7a10d5deccb30e6833870657825442d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:abe59dec9580982274aa5d85dca246c29"><td class="memItemLeft" align="right" valign="top"><a id="abe59dec9580982274aa5d85dca246c29"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>QtSoapHttpServer</b></td></tr>
<tr class="separator:abe59dec9580982274aa5d85dca246c29"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="class_qt_soap_message.html" title="The QtSoapMessage class provides easy access to SOAP messages. ">QtSoapMessage</a> class provides easy access to SOAP messages. </p>
<p>With this class, you can create and inspect any SOAP message. There are convenience functions available for generating the most common types of SOAP messages, and any other messages can be constructed manually using <a class="el" href="class_qt_soap_message.html#a16c43285b934153623d541f061dd1910">addBodyItem()</a>.</p>
<p>Use <a class="el" href="class_qt_soap_message.html#a792f4e366d4bf4c3ca09ea6f034237b5">setMethod()</a> and <a class="el" href="class_qt_soap_message.html#a07c31536525e366258d54c75d955de50">addMethodArgument()</a> to construct a method request. The return value of a method response is available from <a class="el" href="class_qt_soap_message.html#ac223f69e31d5f9ff251a467149c547d5">returnValue()</a>.</p>
<p>Use <a class="el" href="class_qt_soap_message.html#af8fd208d7b0a07f9b79581562da32b01">setFaultCode()</a>, <a class="el" href="class_qt_soap_message.html#ae671efb37455beb8b5ee1247098622b5">setFaultString()</a> and <a class="el" href="class_qt_soap_message.html#af0cd7c0da675f83e91dcc5c29faf7382">addFaultDetail()</a> to construct a Fault message. To inspect a Fault message, use <a class="el" href="class_qt_soap_message.html#a2f5bbde1c34bddebd81ba112087c78c3">faultCode()</a>, <a class="el" href="class_qt_soap_message.html#a11b95f781994094c764e457f800a3a21">faultString()</a> and <a class="el" href="class_qt_soap_message.html#a6263ac6f8823f9e2a00e83ba2bf5c4dd">faultDetail()</a>.</p>
<p>To add items to the body part of the SOAP message, use <a class="el" href="class_qt_soap_message.html#a16c43285b934153623d541f061dd1910">addBodyItem()</a>. To add items to the header, use <a class="el" href="class_qt_soap_message.html#a61b9c16754a167088a107eb34473683e">addHeaderItem()</a>.</p>
<p><a class="el" href="class_qt_soap_message.html#a5c9c6997f2ee1b35bf73a7988ef87213">toXmlString()</a> returns a QString XML representation of the SOAP message. <a class="el" href="class_qt_soap_message.html#aba7b362184f4d75405a237014d46cad6">clear()</a> resets all content in the message, creating an empty SOAP message.</p>
<div class="fragment"><div class="line"><a class="code" href="class_qt_soap_message.html">QtSoapMessage</a> message;</div><div class="line"></div><div class="line">message.<a class="code" href="class_qt_soap_message.html#a792f4e366d4bf4c3ca09ea6f034237b5">setMethod</a>(<span class="stringliteral">&quot;getTemperature&quot;</span>, <span class="stringliteral">&quot;http://weather.example.com/temperature&quot;</span>);</div><div class="line">message.<a class="code" href="class_qt_soap_message.html#a07c31536525e366258d54c75d955de50">addMethodArgument</a>(<span class="stringliteral">&quot;city&quot;</span>, <span class="stringliteral">&quot;Oslo&quot;</span>);</div><div class="line"></div><div class="line"><span class="comment">// Get the SOAP message as an XML string.</span></div><div class="line">QString xml = message.<a class="code" href="class_qt_soap_message.html#a5c9c6997f2ee1b35bf73a7988ef87213">toXmlString</a>();</div></div><!-- fragment --><p>QtSoap provides a partial implementation of version 1.1 of the SOAP protocol as defined in  <a href="http://www.w3.org/TR/SOAP/">http://www.w3.org/TR/SOAP/</a>.</p>
<p>Server side SOAP is not supported.  References to values (id and href attributes) are not supported.  Arrays support a maximum of five dimensions.  Namespaces for types are not checked. Only the type names are used.  The encodingStyle attribute is ignored. The serialization and encoding rules from section 5 in the SOAP v1.1 specification are assumed regardless of the value of the encodingStyle attribute.  <a class="el" href="class_qt_soap_type.html" title="The QtSoapType class is the base class for all SOAP types in QtSoap. ">QtSoapType</a> does not have accessors for attributes, which means for example that actor, mustUnderstand and so on are not accessible in headers.  The SOAP root attribute is not supported. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qt_soap_type.html" title="The QtSoapType class is the base class for all SOAP types in QtSoap. ">QtSoapType</a>, <a class="el" href="class_qt_soap_q_name.html" title="The QtSoapQName class provides a wrapper for QNames (names with namespaces). ">QtSoapQName</a>, <a class="el" href="class_qt_soap_http_transport.html" title="The QtSoapHttpTransport class provides a mechanism for transporting SOAP messages to and from other h...">QtSoapHttpTransport</a> </dd></dl>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="ad27765646a4612b1f644229e9544b744"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad27765646a4612b1f644229e9544b744">&#9670;&nbsp;</a></span>FaultCode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_qt_soap_message.html#ad27765646a4612b1f644229e9544b744">QtSoapMessage::FaultCode</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This enum describes all the supported SOAP Fault codes:</p>
<p>VersionMismatch The namespace for the Envelope element was unrecognized by the remote SOAP server. This usually means that the remote server does not support version 1.1 of the SOAP protocol.</p>
<p>MustUnderstand One of the header items in the SOAP message with a "MustUnderstand" attribute was not recognized by the remote server.</p>
<p>Client An error in the SOAP message or transport prevents further processing by the remote SOAP server.</p>
<p>Server An error in the remote SOAP server prevents it from processing the SOAP message.</p>
<p>Other </p>

</div>
</div>
<a id="a57326237655d076b289452ce9ab3b8de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57326237655d076b289452ce9ab3b8de">&#9670;&nbsp;</a></span>MessageType</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_qt_soap_message.html#a57326237655d076b289452ce9ab3b8de">QtSoapMessage::MessageType</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Fault  MethodRequest  MethodResponse  OtherType </p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac3bdd2fcf2cf21e519a0b33862c2cf59"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3bdd2fcf2cf21e519a0b33862c2cf59">&#9670;&nbsp;</a></span>QtSoapMessage() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QtSoapMessage::QtSoapMessage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructs an empty <a class="el" href="class_qt_soap_message.html" title="The QtSoapMessage class provides easy access to SOAP messages. ">QtSoapMessage</a>. The message only contains the Envelope element, with no header and no body. </p>

</div>
</div>
<a id="a1e060067d5ddcef2bf25899f70d1713a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e060067d5ddcef2bf25899f70d1713a">&#9670;&nbsp;</a></span>QtSoapMessage() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QtSoapMessage::QtSoapMessage </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qt_soap_message.html">QtSoapMessage</a> &amp;&#160;</td>
          <td class="paramname"><em>copy</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructs a copy of <em>copy</em>. </p>

</div>
</div>
<a id="ac71afb2d55c00f27b793e99380cdcc32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac71afb2d55c00f27b793e99380cdcc32">&#9670;&nbsp;</a></span>~QtSoapMessage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QtSoapMessage::~QtSoapMessage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destructs a <a class="el" href="class_qt_soap_message.html" title="The QtSoapMessage class provides easy access to SOAP messages. ">QtSoapMessage</a>. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a16c43285b934153623d541f061dd1910"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a16c43285b934153623d541f061dd1910">&#9670;&nbsp;</a></span>addBodyItem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QtSoapMessage::addBodyItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qt_soap_type.html">QtSoapType</a> *&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Adds <em>item</em> to the body in the SOAP message. The item is added after the last existing item in the body. </p>

</div>
</div>
<a id="af0cd7c0da675f83e91dcc5c29faf7382"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0cd7c0da675f83e91dcc5c29faf7382">&#9670;&nbsp;</a></span>addFaultDetail()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QtSoapMessage::addFaultDetail </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qt_soap_type.html">QtSoapType</a> *&#160;</td>
          <td class="paramname"><em>detail</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Adds the <a class="el" href="class_qt_soap_type.html" title="The QtSoapType class is the base class for all SOAP types in QtSoap. ">QtSoapType</a> <em>detail</em> to the end of the list of faultdetail items in a SOAP Fault message. </p>

</div>
</div>
<a id="a61b9c16754a167088a107eb34473683e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61b9c16754a167088a107eb34473683e">&#9670;&nbsp;</a></span>addHeaderItem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QtSoapMessage::addHeaderItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qt_soap_type.html">QtSoapType</a> *&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Adds <em>item</em> to the header in the SOAP message. The item is added after the last existing item in the header. </p>

</div>
</div>
<a id="a07c31536525e366258d54c75d955de50"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07c31536525e366258d54c75d955de50">&#9670;&nbsp;</a></span>addMethodArgument() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QtSoapMessage::addMethodArgument </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qt_soap_type.html">QtSoapType</a> *&#160;</td>
          <td class="paramname"><em>arg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Adds argument <em>arg</em> to the list of arguments that are passed in a SOAP method request.</p>
<dl class="section warning"><dt>Warning</dt><dd><a class="el" href="class_qt_soap_message.html#a792f4e366d4bf4c3ca09ea6f034237b5">setMethod()</a> must be called before calling this function. </dd></dl>

</div>
</div>
<a id="a9ad20b534929c505e23902f9534d518f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ad20b534929c505e23902f9534d518f">&#9670;&nbsp;</a></span>addMethodArgument() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QtSoapMessage::addMethodArgument </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>uri</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.</p>
<p>Adds an argument called <em>name</em> with a uri of <em>uri</em>. The type of the argument is QtSoapType::String and its value is <em>value</em>. </p>

</div>
</div>
<a id="a980ff800439c59294e6c2ab7529b109e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a980ff800439c59294e6c2ab7529b109e">&#9670;&nbsp;</a></span>addMethodArgument() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QtSoapMessage::addMethodArgument </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>uri</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dummy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.</p>
<p>Adds an argument called <em>name</em> with a uri of <em>uri</em>. The type of the argument is QtSoapType::Boolean and its value is <em>value</em>.</p>
<p>The <em>dummy</em> argument is used to distinguish this function from the overload which takes an int. </p>

</div>
</div>
<a id="a7a4d57e36365d255ec8d8fdf833c6507"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a4d57e36365d255ec8d8fdf833c6507">&#9670;&nbsp;</a></span>addMethodArgument() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QtSoapMessage::addMethodArgument </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>uri</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.</p>
<p>Adds an argument called <em>name</em> with a uri of <em>uri</em>. The type of the argument is QtSoapType::Integer and its value is <em>value</em>. </p>

</div>
</div>
<a id="a8c5e1cc13af9a4aebfd6d061525a69f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c5e1cc13af9a4aebfd6d061525a69f5">&#9670;&nbsp;</a></span>body()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_qt_soap_struct.html">QtSoapStruct</a> &amp; QtSoapMessage::body </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns a reference to the body of the SOAP message. </p>

</div>
</div>
<a id="aba7b362184f4d75405a237014d46cad6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba7b362184f4d75405a237014d46cad6">&#9670;&nbsp;</a></span>clear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QtSoapMessage::clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Clears the content of the SOAP message. </p>

</div>
</div>
<a id="a3ae2c2925bc7843e32d57dce0c318d41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ae2c2925bc7843e32d57dce0c318d41">&#9670;&nbsp;</a></span>errorString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString QtSoapMessage::errorString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns a human readable explanation of the most recent error that occurred in the <a class="el" href="class_qt_soap_message.html" title="The QtSoapMessage class provides easy access to SOAP messages. ">QtSoapMessage</a>. </p>

</div>
</div>
<a id="a2f5bbde1c34bddebd81ba112087c78c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f5bbde1c34bddebd81ba112087c78c3">&#9670;&nbsp;</a></span>faultCode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_qt_soap_message.html#ad27765646a4612b1f644229e9544b744">QtSoapMessage::FaultCode</a> QtSoapMessage::faultCode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the Fault faultcode element of a SOAP Fault message. </p>

</div>
</div>
<a id="a6263ac6f8823f9e2a00e83ba2bf5c4dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6263ac6f8823f9e2a00e83ba2bf5c4dd">&#9670;&nbsp;</a></span>faultDetail()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_qt_soap_type.html">QtSoapType</a> &amp; QtSoapMessage::faultDetail </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the Fault detail element of a SOAP Fault message. </p>

</div>
</div>
<a id="a11b95f781994094c764e457f800a3a21"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11b95f781994094c764e457f800a3a21">&#9670;&nbsp;</a></span>faultString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_qt_soap_type.html">QtSoapType</a> &amp; QtSoapMessage::faultString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the Fault faultstring element of a SOAP Fault message. </p>

</div>
</div>
<a id="a4c1ec40db5502f9f54cadcafd4cdc772"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c1ec40db5502f9f54cadcafd4cdc772">&#9670;&nbsp;</a></span>header()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_qt_soap_struct.html">QtSoapStruct</a> &amp; QtSoapMessage::header </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns a reference to the header of the SOAP message. </p>

</div>
</div>
<a id="a7aa7a55d9f593144499f8622e8aa1ce5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7aa7a55d9f593144499f8622e8aa1ce5">&#9670;&nbsp;</a></span>isFault()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QtSoapMessage::isFault </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns true if the message is a SOAP Fault message; otherwise returns false. </p>

</div>
</div>
<a id="a2aa1fdeea09e733ac5fe103ece393b8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2aa1fdeea09e733ac5fe103ece393b8a">&#9670;&nbsp;</a></span>isValidSoapMessage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool QtSoapMessage::isValidSoapMessage </td>
          <td>(</td>
          <td class="paramtype">const QDomDocument &amp;&#160;</td>
          <td class="paramname"><em>candidate</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Validates the QDomDocument <em>candidate</em> using some simple heuristics. Returns true if the document is a valid SOAP message; otherwise returns false. </p>

</div>
</div>
<a id="a83b058700a430911c883a4cda80299c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83b058700a430911c883a4cda80299c2">&#9670;&nbsp;</a></span>method()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_qt_soap_type.html">QtSoapType</a> &amp; QtSoapMessage::method </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the method of a SOAP method request or response as a <a class="el" href="class_qt_soap_type.html" title="The QtSoapType class is the base class for all SOAP types in QtSoap. ">QtSoapType</a>. </p>

</div>
</div>
<a id="acfd530c3e58c9443ddf74b36c922754c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acfd530c3e58c9443ddf74b36c922754c">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_qt_soap_message.html">QtSoapMessage</a> &amp; QtSoapMessage::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qt_soap_message.html">QtSoapMessage</a> &amp;&#160;</td>
          <td class="paramname"><em>copy</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Makes this message a copy of <em>copy</em>. </p>

</div>
</div>
<a id="ac223f69e31d5f9ff251a467149c547d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac223f69e31d5f9ff251a467149c547d5">&#9670;&nbsp;</a></span>returnValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_qt_soap_type.html">QtSoapType</a> &amp; QtSoapMessage::returnValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the return value of a SOAP method response as a <a class="el" href="class_qt_soap_type.html" title="The QtSoapType class is the base class for all SOAP types in QtSoap. ">QtSoapType</a>. </p>

</div>
</div>
<a id="a535e4eaf3d1c0372ec30e02e790b6b58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a535e4eaf3d1c0372ec30e02e790b6b58">&#9670;&nbsp;</a></span>setContent() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QtSoapMessage::setContent </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>buffer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.</p>
<p>Parses the XML document in <em>buffer</em>. Imports the document if it validates as a SOAP message. Any existing message content is replaced.</p>
<p>If the import fails, this message becomes a Fault message.</p>
<p>Returns true if the import succeeds, otherwise false. </p>

</div>
</div>
<a id="a0e22e5782ee668dbcd3218428ea3a062"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e22e5782ee668dbcd3218428ea3a062">&#9670;&nbsp;</a></span>setContent() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QtSoapMessage::setContent </td>
          <td>(</td>
          <td class="paramtype">QDomDocument &amp;&#160;</td>
          <td class="paramname"><em>d</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Imports the QDomDocument <em>d</em> if it validates as a SOAP message. Any existing message content is replaced.</p>
<p>If the import fails, this message becomes a Fault message.</p>
<p>Returns true if the import succeeds, otherwise false. </p>

</div>
</div>
<a id="af8fd208d7b0a07f9b79581562da32b01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8fd208d7b0a07f9b79581562da32b01">&#9670;&nbsp;</a></span>setFaultCode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QtSoapMessage::setFaultCode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qt_soap_message.html#ad27765646a4612b1f644229e9544b744">FaultCode</a>&#160;</td>
          <td class="paramname"><em>code</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the fault code of the SOAP Fault message to <em>code</em>. </p>

</div>
</div>
<a id="ae671efb37455beb8b5ee1247098622b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae671efb37455beb8b5ee1247098622b5">&#9670;&nbsp;</a></span>setFaultString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QtSoapMessage::setFaultString </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the Fault faultstring of the SOAP Fault message to <em>s</em>. </p>

</div>
</div>
<a id="a792f4e366d4bf4c3ca09ea6f034237b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a792f4e366d4bf4c3ca09ea6f034237b5">&#9670;&nbsp;</a></span>setMethod() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QtSoapMessage::setMethod </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qt_soap_q_name.html">QtSoapQName</a> &amp;&#160;</td>
          <td class="paramname"><em>meth</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the QName (qualified name) of the method to call in a SOAP method request to <em>meth</em>.</p>
<p>This function <em>must</em> be called before calling <a class="el" href="class_qt_soap_message.html#a07c31536525e366258d54c75d955de50">addMethodArgument()</a>. </p>

</div>
</div>
<a id="a83fb2dcd2fa4c2bf3ab8e1bb3d76455a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83fb2dcd2fa4c2bf3ab8e1bb3d76455a">&#9670;&nbsp;</a></span>setMethod() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QtSoapMessage::setMethod </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>uri</em> = <code>QString::null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.</p>
<p>Sets the method name to <em>name</em> and uri to <em>uri</em>. </p>

</div>
</div>
<a id="a5c9c6997f2ee1b35bf73a7988ef87213"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c9c6997f2ee1b35bf73a7988ef87213">&#9670;&nbsp;</a></span>toXmlString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString QtSoapMessage::toXmlString </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>indent</em> = <code>0</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the XML representation of the SOAP message as a QString, optionally indenting using <em>indent</em> spaces. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/network/soap/<a class="el" href="qtsoap_8h_source.html">qtsoap.h</a></li>
<li>R:/Develop/a0-develop/LibQQt/src/network/soap/qtsoap.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
